<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:th="http://www.thymeleaf.org"
	xmlns:winter="http://www.winter.org"
	xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout"
	layout:decorator="/layouts/layout">
	
	<div id="LinderoGestionFragment" th:fragment="LinderoGestionFragment">
		<winter:output id="mainLinderoDialogOutput" class="winter-form form-container">
			<winter:output id="formLegitimacionDialogOutput" class="cabecera">
				<winter:row>
					<winter:column type="col-md-4">
							<winter:inputtext id="NuevoNomb"
							field="*{lindero.ladonombre}"
							label="#{label.inmueble.nombre}" 
							required="false"
							requiredimage="/images/icons/exclamation-small-red.png"
							requiredmessage="#{label.inmueble.nombre.requerido}"
							maxlength="50"
							maxlengthmessage="Favor ingrese hasta 50 digitos"
							type="float"
							labeldisplay="col-xs-4"
							inputdisplay="col-xs-8"
							containerdisplay="row padded"
							class="winter-input-text capitalize">
						</winter:inputtext>
					</winter:column>
				</winter:row>
				<winter:row>
					<winter:column type="col-md-4">
							<winter:inputtext id="NuevoMedida"
							field="*{lindero.ladomedida}"
							label="#{label.inmueble.medida}" 
							required="false"
							requiredimage="/images/icons/exclamation-small-red.png"
							requiredmessage="#{label.inmueble.medida.requerido}"
							type="float"
							labeldisplay="col-xs-4"
							inputdisplay="col-xs-8"
							containerdisplay="row padded"
							class="winter-input-text capitalize">
						</winter:inputtext>
					</winter:column>
					<winter:column type="col-md-4">
								<winter:select id="selectUMid" 
									field="*{lindero.um}"
									collection="um, rowUm : ${inmuebles.uMedidas}"
									value="${um.id}" 
									text="@{${um.descripcion}}"
									label="@{'UM: '}" 
									modern="true"
									showglobalemessage="true">
								</winter:select>
				    </winter:column>
				</winter:row>
				<winter:row>
					<winter:column type="col-md-4">
							<winter:inputtext id="lindaCon"
							field="*{lindero.ladolinda}"
							label="#{label.inmueble.linda}" 
							required="false"
							requiredimage="/images/icons/exclamation-small-red.png"
							requiredmessage="#{label.inmueble.linda.requerido}"
							maxlength="40"
							maxlengthmessage="Favor ingrese hasta 40 digitos"
							type="float"
							labeldisplay="col-xs-4"
							inputdisplay="col-xs-8"
							containerdisplay="row padded"
							class="winter-input-text capitalize">
						</winter:inputtext>
					</winter:column>
				</winter:row>				
				<winter:row class="button-panel-right" padded="true">
					<winter:ajaxSubmit id="CrearLindero" 
						form="InmueblesForm"
						url="@{'/inmuebles/guardarLindero'}"
						update="LinderosInclude,listaLinderos,linderosOutput,CrearEditarInmuebleOutput"
						object="inmuebles" 
						value="#{label.operaciones.guardar}" 
						showstatus="true"
						class="btn btn-cyan"
						process="LinderoCrearContainer"
						oncomplete="@{'Winter.ui.CloseDialog(\'LinderoDialog\')'}">
					</winter:ajaxSubmit>
					<winter:ajaxSubmit id="CrearLinderoCancelar" 
						form="InmueblesForm"
						object="inmuebles" 
						url="@{'/inmuebles/cancelar/LINDERO'}"
						update="DialogOutput, CrearEditarLinderoOutput,LinderoCrearDiV"
						value="#{label.operaciones.cancelar}" 
						showstatus="true"
						class="btn btn-danger" 
						process="LinderoCrearContainer"
						immediate="true"
						oncomplete="@{'Winter.ui.CloseDialog(\'LinderoDialog\')'}">
					</winter:ajaxSubmit>
				</winter:row>
		    </winter:output>
		</winter:output>
	</div>
</html>